﻿using PSI.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PSI.Helper {
    public class PSIBaseController : System.Web.Mvc.Controller {
        protected override System.Web.Mvc.JsonResult Json(object data, string contentType, System.Text.Encoding contentEncoding, System.Web.Mvc.JsonRequestBehavior behavior) {
            return new CustomJsonResult {
                Data = data,
                ContentType = contentType,
                ContentEncoding = contentEncoding
            };
        }
    }

    [NeedLogin]
    public class PSIController : PSIBaseController { }
}